'''
Created on 21 de Abr de 2012

@author: TiagoBarriga
'''
import Tkinter
import tkMessageBox

matrix = [5, 7, 2, 4, 3, 1, 8, 11]

top = Tkinter.Tk()

def helloCallBack():
   tkMessageBox.showinfo( "Hello Python", "Cliked")

def makeAnother():
    txt = "Erza Titania"
    txt = textbox.get()
    a = Tkinter.Button(top, text = txt, command = helloCallBack)
    a.pack()
    textbox.delete(0, 100)
    
    
textbox = Tkinter.Entry()
textbox.pack()

B = Tkinter.Button(top, text = "Add", command = makeAnother)
B.pack()

rm = Tkinter.Button(top, text = "Remove", command = 0)
rm.pack()

top.mainloop()




